<template>
  <el-menu
    class="el-menu-demo"
    mode="horizontal"
    background-color="#fff"
    text-color="black"
    active-text-color="#ffd04b"
    default-active="/index/index1"
    :router="true">
    <el-menu-item><h2>Direction</h2></el-menu-item>
    <el-menu-item index="/index/index1" >首页</el-menu-item>
    <el-menu-item index="2" >目的地</el-menu-item>
    <el-menu-item index="3" >旅游攻略</el-menu-item>
    <el-submenu index="4">
      <template slot="title" ><div id="tra">去旅行</div></template>
      <el-menu-item index="2-1">自由行</el-menu-item>
      <el-menu-item index="2-2">跟团游</el-menu-item>
      <el-menu-item index="2-3">当地游</el-menu-item>
      <el-menu-item index="2-3">游轮</el-menu-item>
    </el-submenu>
    <el-menu-item index="5">机票火车票</el-menu-item>
    <el-menu-item index="/index/hotel/diving">订酒店</el-menu-item>
    <form action method="get" class="sidebar-from">
      <div class="input-group">
        <input type="text" name="q" class="form-control" placeholder="Search"></input>
      </div>
    </form>
    <div class="login-out">
      <a class="weibo-login" href="#" title="微博登录" rel="nofollow"></a>
      <a class="qq-login" href="#" title="QQ登录" rel="nofollow"></a>
      <a class="weixin-login" href="#" title="微信登录" rel="nofollow"></a>
      <a id="_j_showlogin"  href="#" rel="nofollow">登录</a><span class="split">|</span><a href="#" title="注册帐号" rel="nofollow">注册</a>
    </div>
  </el-menu>
</template>

<script>
    export default {
        name: "NavBar"
    }
</script>

<style scoped>
  .el-menu{
    padding-left: 150px;
  }
  .sidebar-from{
    display: inline-block;
    border-radius: 5px;
    margin: 10px 10px;
  }
  .sidebar-from input{
    color: black;
    border-radius:5px;
    box-shadow: none;
    background-color: #efefef;
    border: 1px solid transparent;
    height: 35px;
    width: 300px;
  }
  a{
    display: inline-block;
    text-decoration: none;
    color: #ff9d00;
    margin-left: 5px;
  }
  .login-out{
    display: inline-block;
    margin-left: 10px;
  }
  h2{
    line-height: 20px;
  }
  .el-menu-item{
    background-color: #f0c78a;
    font-size: 16px;
  }
  a.weibo-login{
    background: url("../img/weibo.png") no-repeat;
    background-size: 90%;
    display: inline-block;
    width: 26px;
    height: 30px;
    position: relative;
    top: 12px;
  }
  a.qq-login{
    background: url("../img/qq.png") no-repeat;
    background-size: 100%;
    display: inline-block;
    width: 26px;
    height: 30px;
    position: relative;
    top: 12px;
  }
  a.weixin-login{
    background: url("../img/weixin.png") no-repeat;
    background-size: 90%;
    display: inline-block;
    width: 26px;
    height: 30px;
    position: relative;
    top: 11px;
    left: 3px;
  }
  #tra{
    font-size: 16px;
  }

</style>
